package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name      string `gorm:"type:varchar(20);not null;comment:用户名" json:"name"`
	Telephone string `gorm:"type:varchar(11);not null;unique;comment:手机号" json:"telephone"`
	Password  string `gorm:"type:varchar(100);not null;comment:密码" json:"password"`
	Role      string `gorm:"type:varchar(20);not null;comment:角色" json:"role"`
}
